package action_行为型.memento_pattern_备忘录模式;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: hihi
 * @Date: 2020/07/08/19:56
 * @Description:
 */
public class CareTaker {

	private List<Memento> mementos = new ArrayList<>();

	public void add(Memento memento) {
		mementos.add(memento);
	}

	public Memento get(int index) {
		return mementos.get(index);
	}
}
